package com.gitee.dupe.authority.dao;

import com.gitee.dolt.boot.mapper.SuperMapper;
import com.gitee.dupe.authority.dto.UserRoleDTO;
import com.gitee.dupe.authority.entity.Role;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author LYH
 * @since 2020-06-30
 */
@Repository
public interface RoleMapper extends SuperMapper<Role> {

    /**
     * 获取用户角色
     *
     * @param userIds
     * @return
     */
    List<UserRoleDTO> findAllEnabledByUserIds(Collection<Long> userIds);
}
